package com.xauto.pioneer.appuser.model;

import org.json.JSONObject;

/**
 * Created by Administrator on 2018/7/13.
 */

public class MonthlyRentSiteListInfo extends BaseModel<MonthlyRentSiteListInfo> {
    /** 停车场id*/
    public String parking_id;
    /** 总计停车位*/
    public String parking_space_value;
    /** 现有停车位*/
    public String parking_space_num;
    /** 停车场位置信息*/
    public String location_message;
    /** 停车场名称*/
    public String parking_name;
    /** 规则项*/
    public String parking_rule;
    @Override
    public MonthlyRentSiteListInfo parse(JSONObject jsonObject) {
        if(jsonObject != null) {
            parking_id = jsonObject.optString("parking_id");
            parking_space_value = jsonObject.optString("parking_space_value");
            parking_space_num = jsonObject.optString("parking_space_num");
            location_message = jsonObject.optString("location_message");
            parking_name = jsonObject.optString("parking_name");
            parking_rule = jsonObject.optString("parking_rule");
            return this;
        }
        return null;
    }
}
